// pages/homepage/sport/sport.js
var app = getApp();
Page({
  data: {
    id: '',
  },
  onShareAppMessage: function () {
  },
  input: function (e) {
    this.setData({
      id: e.detail.value
    })
  },

  formSubmit: function () {
    var that = this;
    wx.navigateTo({
      url: 'sportdetail/sportdetail?id=' + that.data.id,
    })
  },
  return: function () {
    wx.navigateTo({
      url: '../homepage',
    })
  }
})
